<?php
//create time birthday build application 
//get birthday user.
/// These are the variables you'd set to your needs
$month = "4";
$day = "16";
$year = "1990";

function date_finder($increment, $month, $day, $year)
{   
return date("m-d-Y", strtotime($increment, mktime(0, 0, 0, $month, $day, $year)));
}

$last_month = date_finder("+21 year - 5 day", $month, $day, $year);
echo $last_month;

?>


<?php
$start=strtotime("01 January 2010");
$now=strtotime(date("d F Y"));

while($now>=$start)
{
   // echo "<option value=\"$now\">" . date('F Y', $now) . "</option>\n";

    $now=$now-(60*60*24*(365/12));
}
?>

<?php
    function getNextMondayDate()
    {
        $ret = date('Y-m-d');
        for ($i=1; $i<=7; $i++)
        {
            if (date('w',strtotime('+'.$i.' day'))==1)
            {
                $ret = date('Y-m-d',strtotime('+'.$i.' day'));
                break;
            }
        }
        return $ret;
    }
	echo getNextMondayDate();
?>

<?php
$seasons = array("Winter","Spring","Summer","Autumn");
echo $seasons[(int)((date("n") %12)/3)];
?>


<?php
function dateafter ( $a )
{
    $hours = $a * 24;
    $added = ($hours * 3600)+time();
    $days = date("l", $added);
    $month = date("F", $added);
    $day = date("j", $added);
    $year = date("Y", $added);
    $result = "$day $month $year - $days";
    return ($result);
}
echo dateafter("366");
//this will shows the data of ten days after.
// if today is 19 December 2010, Sunday, the page prints : 29 December 2010 - Wednesday.
?>

<?php

 $weeks_in_year = date("Y", strtotime("09/16/2011"));
echo $weeks_in_year;
?> 

<?php
$date_now = date("Y");
$date_birth = 1990;
echo ($date_now - $date_birth) * 12;
?>
<?php
/*
echo strtotime("now"), "\n";
echo strtotime("10 September 2000"), "\n";
echo strtotime("+1 day"), "\n";
echo strtotime("+1 week"), "\n";
echo strtotime("+1 week 2 days 4 hours 2 seconds"), "\n";
echo strtotime("next Thursday"), "\n";
echo strtotime("last Monday"), "\n";
 * */
?>

